admin_asset_delete
Last edit: Nov 10, 2026
Deletes an asset found by physical_file_path, including its file in storage,
and returns it. The file cannot be recovered. Already deleted assets are found
too. Raises an error when no such asset exists
admin_asset_delete(
physical_file_path: String!
): Asset
Arguments
physical_file_path (String)
physical_file_path of the asset to delete, for example assets/images/logo.png
Type
Asset
Static file (image, stylesheet, script, font etc.) from app/assets or a module assets directory, served from the CDN