<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def delete_post(self, post):
 """ Deletes post by cid :type post: dict|str|int :param post: Either the post dict returned by another API method, the post ID, or the `cid` field of that post. :rtype: dict :returns: Dictionary with information about the post cid. """


        try:
            cid = post['id']
        except KeyError:
            cid = post
        except TypeError:
            post = self.get_post(post)
            cid = post['id']

        params = {
            "cid": cid,
        }

        return self._rpc.content_delete(params)