the controller returns code 204
this is not important, because a controller can return any value, but a transaction failed. In this case any changes to the database will be rolled back.
This means that you should test the actual values passed through the controller as a parameter. Because missing incorrect value nothing will be deleted.