def delete_content_of_resource(self, edit_media_iri = None,
                                         on_behalf_of = None,
                                         dr = None):
        if not edit_media_iri:
            if dr != None:
                conn_l.info("Using the deposit receipt to get the Edit-Media-IRI")
                edit_media_iri = dr.edit_media
                if edit_media_iri:
                    conn_l.info("Deleting Resource via Edit-Media-IRI %s" % edit_media_iri)
                else:
                    raise Exception("No Edit-Media-IRI was given and no suitable IRI was found in the deposit receipt.")   
            else:
                raise Exception("No Edit-Media-IRI was given")
        else:
            conn_l.info("Deleting Resource via Edit-Media-IRI %s" % edit_media_iri)

        return self.delete(edit_media_iri,
                                    on_behalf_of = on_behalf_of)
list all the available commands in the system
dataset/ETHPy150Open swordapp/python-client-sword2/sword2/connection.py/Connection.delete_content_of_resource--crossover with--dataset/ETHPy150Open garethr/Asteroid/asteroid/apps/runner/views.py/list_commands