It would be nice to have a config with an option to enable or disable 'remove all attachments'. For now I just disabled the return $p in the function add_removeall_link($p). But a config option would be more elegant.