Class DeleteCreatedPackageController
Inheritance
System.Object
Namespace: Umbraco.Cms.Api.Management.Controllers.Package.Created
Assembly: Umbraco.Cms.Api.Management.dll
Syntax
public class DeleteCreatedPackageController : CreatedPackageControllerBase
Constructors
View SourceDeleteCreatedPackageController(IPackagingService, IBackOfficeSecurityAccessor)
Declaration
public DeleteCreatedPackageController(IPackagingService packagingService, IBackOfficeSecurityAccessor backOfficeSecurityAccessor)
Parameters
Type | Name | Description |
---|---|---|
IPackaging |
packagingService | |
IBack |
backOfficeSecurityAccessor |
Methods
View SourceDelete(CancellationToken, Guid)
Deletes a package with a given id.
Declaration
public async Task<IActionResult> Delete(CancellationToken cancellationToken, Guid id)
Parameters
Type | Name | Description |
---|---|---|
Cancellation |
cancellationToken | |
Guid | id | The id of the package. |
Returns
Type | Description |
---|---|
Task<IAction |
The result of the deletion. |