Implements deleting files.