Fixes shortcut delete method.

Fixes Claroline/CoreBundle#556