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 |
|---|---|---|
| IPackagingService | packagingService | |
| IBackOfficeSecurityAccessor | 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 |
|---|---|---|
| CancellationToken | cancellationToken | |
| Guid | id | The id of the package. |
Returns
| Type | Description |
|---|---|
| Task<IActionResult> | The result of the deletion. |