- Main Page
- Data Structures
- Files

- File List
- Globals

# samples/jsdelete.c File Reference

`#include <jasperserver.h>`

Go to the source code of this file.

## Functions
void | delete_resource (char *uri)
| Sample function to delete a resource by URI.
int | main (int argc, char **argv)
## Variables
const char | server [] = "http://127.0.0.1:8080/jasperserver/services/repository"

## Detailed Description

This sample shows how to delete a resource inside the repository.

See also:
  jasperserver_ws_delete

Definition in file jsdelete.c.

## Function Documentation

void delete_resource | ( | char * | uri | ) |

Sample function to delete a resource by URI.

Parameters:

  | uri | of the resource to delete.

Warning:
  Don't try to delete the uri "/" since it will remove all the content of your repository!

Definition at line 40 of file jsdelete.c.

int main | ( | int | argc,
|  | char ** | argv |
| ) |  |  |

Definition at line 85 of file jsdelete.c.

## Variable Documentation

const char server[] = "http://127.0.0.1:8080/jasperserver/services/repository"

Definition at line 32 of file jsdelete.c.