Exemplo n.º 1
0
 def delete_object(self):
     """The recommended way to delete a view is to send a DELETE request to the View resource endpoint, as shown
     in View request examples."""
     qry = DeleteEntityQuery(self)
     self.context.add_query(qry)
     self.remove_from_parent_collection()
     return self
Exemplo n.º 2
0
    def delete_object(self):
        """Deletes the list.

        :rtype: List
        """
        qry = DeleteEntityQuery(self)
        self.context.add_query(qry)
        self.remove_from_parent_collection()
        return self
Exemplo n.º 3
0
 def delete_object(self):
     """Deletes the directory object."""
     qry = DeleteEntityQuery(self)
     self.context.add_query(qry)
     self.remove_from_parent_collection()
     return self
Exemplo n.º 4
0
 def delete_object(self):
     """Deletes the file."""
     qry = DeleteEntityQuery(self)
     self.context.add_query(qry)
     return self
Exemplo n.º 5
0
 def delete_object(self):
     """Permanently deletes the Recycle Bin item."""
     qry = DeleteEntityQuery(self)
     self.context.add_query(qry)
     self.remove_from_parent_collection()
     return self
Exemplo n.º 6
0
 def delete_object(self):
     """Delete a Web resource"""
     qry = DeleteEntityQuery(self)
     self.context.add_query(qry)
     self.remove_from_parent_collection()
     return self
Exemplo n.º 7
0
 def delete_list_item(self, list_name, item_id):
     list_item_to_delete = self.get_list_item(list_name, item_id)
     qry = DeleteEntityQuery(list_item_to_delete)
     self.add_query(qry)
Exemplo n.º 8
0
 def delete_object(self):
     """The recommended way to delete a SharePoint entity"""
     qry = DeleteEntityQuery(self)
     self.context.add_query(qry)
     self.remove_from_parent_collection()
     return self
Exemplo n.º 9
0
 def delete_object(self):
     """Deletes the fields."""
     qry = DeleteEntityQuery(self)
     self.context.add_query(qry)
     self.remove_from_parent_collection()