Delete nodes if URL is called via Wget Command How can I delete the nodes if i am calling my URL via wget command. Because the anonymous user haven't permission to edit/delete.
Services module is great for this job. Here are the steps how you can make it work:


Download Services, Chaos tools and Libraries. Enable the REST Server module (shipped with Services), it will make you enable all dependencies as well.
Go to Structure » Services, add a new endpoint.
Choose a machine-readable name, e.g.: node_remove.
Select REST as a server.
Define a path to your endpoint, e.g.: node-remove.
Enable debug mode, it's handy while you are experimenting, Services will write useful information to the log.
Enable session authentication, this will ensure security.
After saving your endpoint, edit its resources.
Enable the delete operation in the node group and the login operation in the user group.
Go to the Server tab, select the response formatters and request parsing options that you want.


Your endpoint is ready to use. First you need to post a username and password to http://example.com/node-remove/user/login. (It's recommended to create a user with a strong password and permissions for only deleting nodes.) You will get a session ID (among others) in the response. Then you need to perform a DELETE request to http://example.com/node-remove/node/{nid}. You can write a script for these actions and execute that as a cronjob.