def permanently_delete(self, tickets):
endpoint_kwargs = dict()<EOL>if isinstance(tickets, collections.Iterable):<EOL><INDENT>endpoint_kwargs['<STR_LIT>'] = [i.id for i in tickets]<EOL><DEDENT>else:<EOL><INDENT>endpoint_kwargs['<STR_LIT:id>'] = tickets.id<EOL><DEDENT>url = self._build_url(self.endpoint.deleted(**endpoint_kwargs))<EOL>deleted_ticket_job_id = self._delete(url)<EOL>self.cache.delete(tickets)<EOL>return deleted_ticket_job_id<EOL>
Permanently delete ticket. `See Zendesk API docs <https://developer.zendesk.com/rest_api/docs/support/tickets#delete-ticket-permanently>`_

Ticket should be softly deleted first with regular `delete` method.

:param tickets: Ticket object or list of tickets objects
:return: JobStatus object