def METHOD_NAME(self, params: dict) -> dict:
    # Grab the file object and delete it from the database
    obj = File.objects.get(pk=params[fields.id], deleted=False)
    # Delete the correlated file
    if obj.path and hasattr(obj.path, "path"):
        if os.path.exists(obj.path.path):
            safe_delete(obj.path.path, obj.project.id)
        else:
            drop_file_from_resource(obj.path.name, obj)
            safe_delete(obj.path.name, obj.project.id)
    msg = f"Registered file deleted successfully!"
    # Delete from database
    obj.delete()
    return {"message": msg}