Fix #376 get REQUEST properly in deleteDocument