Delete file functionality.