nils

wait maybe it did remove the file actually

nils

doArchive removes the file object but not the file, gonna do it together with deleteFile

nils

so if you call $file->delete() before delete_by_id you get [User Warning] SilverStripe\Assets\File object #781 wasn't found when calling DataObject::delete_by_id but the File object is still there in Assets

nils

yeah same, keeps a "File cannot be found" entry

nils

ah ok I was just running normal delete

nils

I don't think the file is deleted for me though, but not 100% sure