Updated code to handling upcoming delete() method.
Implemented remove() method to delete a file.