LPS-34516 fix bug when deleting elements inside a trashed folder