Fix incorrect route and security check for delete button

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #232
| License       | MIT