Message if delete/recovery request to wrong type.

Added return of a message in a JSON response if a delete or recovery
request is made to the wrong package type.