Modified the function deleteFile to deleteFiles to enable the multiple files deletion