same for function deleteFileKey() below