@GET
  @Path("/trash/enabled")
  @Produces(MediaType.APPLICATION_JSON)
  public Response trashEnabled() {
    try {
      HdfsApi api = getApi();
      return Response.ok(new FileOperationResult(api.trashEnabled())).build();
    } catch (WebApplicationException ex) {
      throw ex;
    } catch (Exception ex) {
      throw new ServiceFormattedException(ex.getMessage(), ex);
    }
  }
Is trash enabled
@return is trash enabled
contrib/views/commons/src/main/java/org/apache/ambari/view/commons/hdfs/UserService.java