delete()

delete($pk = null)

Delete an entry
@param Mixed $pk
@return Mixed ( false for errors )

Params


$pk (opcional)
Primary Key to delete

Explanation


Now to delete something is very easy, all you have to do is:

When working with a instance:


$user = new Users();

$user->get(1);

$user->delete();

or without instance any entry


$user = new Users();

$user->delete(1);