drop Verified current stable Not installed? Package Management

Drop / Delete Resource

Delete Resource

Removes a specified resource from the management system.

$
Terminal
drop resource <resource_name>;

When To Use

When decommissioning resources that are no longer needed or to free up project space.

Pro Tip

Use the `--force` option to bypass additional confirmation prompts and expedite deletions, but exercise caution to prevent accidental removals.

Command Builder

Tune the command before you copy it

Back to syntax
$
Generated Command
drop resource <resource_name>;

Anatomy of Output

Understanding the result

Resource 'myResource' deletion in progress... Progress Notification

Indicates the deletion process for the specified resource.

Deletion successful for resource: myResource Success Confirmation

Confirms that the resource has been successfully removed.

Total Resources Remaining: 29 Count Summary

Provides the updated count of resources post-deletion.

Troubleshooting

Common pitfalls

ResourceNotFoundError: The specified resource could not be located for deletion.

Solution: Double-check the resource name for accuracy.

DeletePermissionDenied: Insufficient permissions to delete the resource.

Solution: Ensure that the executing user has deletion rights for the resource.

ResourceInUse: The resource is currently in use and cannot be deleted.

Solution: Terminate any active dependencies on the resource before retrying.

Command Breakdown

What each part is doing

drop
Base Command
The executable that performs this operation. Here it runs Drop before the shell applies any redirect operators.
<resource_name>
resource name
The value supplied for resource name.

Alternative Approaches

Comparable commands in other tools

Alternative package management tools for the same job.