def METHOD_NAME(storage: Storage, project_id: int, db_session: SessionLocal):
    """Deletes an existing storage."""
    plugin = plugin_service.get_active_instance(
        db_session=db_session, project_id=project_id, plugin_type="storage"
    )
    if plugin:
        try:
            plugin.instance.delete_file(file_id=storage.resource_id)
        except Exception as e:
            log.exception(e)
    else:
        log.warning("Storage not deleted. No storage plugin enabled.")