CORE-4036: Another attempt at a horrible workaround.
CORE-4045: When a file is moved to the trash, all data links are
deleted.