functionality similar to accept file added to be used when removing file