fix actions when deleting buckets/files