NAME

Gideon::Manual::Removing - Removing objects

VERSION

version 0.0.3

DESCRIPTION

Gideon can remove one object or a groups of objects depending on how it is invoked, please make sure you read and understand the documentation as missues of this method can cause data corruption

remove( [%opts] ) as a Class method

Calling remove as a class method will remove a group of objects from a data store, additionally you can filter objects to be remove by providing %opts and it works in the same way as find method does.

# Remove all named John
People->remove(name => 'John');

# Remove all objects
People->remove;

remove() as an Instance method

When remove is called to a particular instance it removes that particular instance without affecting other objects

# Remove first person
People->find_one(id =>1)->remove;

NAME

Removing objects with Gideon

VERSION

version 0.0.3

AUTHOR

Mariano Wahlmann, Gines Razanov

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Mariano Wahlmann, Gines Razanov.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.