#NEWLINE# def delete( cont , path = None , profile = None ) : #NEWLINE# #INDENT# '\n    Delete a container, or delete an object from a container.\n\n    CLI Example to delete a container::\n\n        salt myminion swift.delete mycontainer\n\n    CLI Example to delete an object from a container::\n\n        salt myminion swift.delete mycontainer remoteobject\n    ' #NEWLINE# swift_conn = _auth ( profile ) #NEWLINE# if ( path is None ) : #NEWLINE# #INDENT# return swift_conn . delete_container ( cont ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return swift_conn . delete_object ( cont , path )